<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
*{margin:0; padding:0; text-decoration:none;}
ul{ list-style:none;}
.content{ border:1px solid #ccc; margin:5% auto; width:60%;}
.top{ border-bottom:1px solid #ccc; overflow:hidden;}
.top h4{ float:left; margin:2%;}
.top a{ float:right; margin:2% 2% 2% 0; color:#000; font-size:15px;}
.top a:hover{ text-decoration:underline;}
.top a i{ display:inline-block; background:url(images/base_z2968da.png) no-repeat -1px -6244px; width:14px; height:15px; margin-left:5px;}
.s_list{ overflow:hidden;}
.s_list a{ color:#fff; float:right; background:#0C6; display:block; padding:1% 2%; border-radius:10%; margin:2%;}
.s_table{ border:1px solid #ccc; margin:8% auto; width:90%; font-size:14px;}
.s_table th{ background:#ddd; padding:1% 0;}
.s_table td{ text-align:center; padding:1% 0;}
.detail{ margin-right:30% !important;}
.confirm{ margin:10px auto; border:1px solid #ccc; width:20%;height:150px; position:absolute; top:250px; left:819px; background:#fff; display:none;}
.confirm i{ display:block; background:url(images/base_z2968da.png) -2px -3440px no-repeat;width:10px; height:6px; left:55%; position:relative;}
.confirm p{ margin:20px 20px;}
.confirm a{ display:inline-block; width:25%; height:30px; background:#44b549; color:#fff; text-align:center; line-height:30px; border-radius:10%; margin-left:15%}
</style>
<script src="js/jquery-2.1.4.js"></script>
</head>

<body>
<div class="content">
	<div class="top">
    	<h4>投票管理</h4>
        <a href="http://kf.qq.com/faq/120813euEJVf1501206Jj6fy.html">公众平台投票规则<i></i></a>
    </div>
    <div class="s_list">
    	<a href="?index.php&g=test&m=test&a=add_vote">+新建投票</a>
        <table cellspacing="0" class="s_table" cellpadding="10">
        	<tr>
            	<th>投票名称</th>
                <th>投票人数</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <{section name=value loop=$data_vote}>
            <tr class="tr-list">
            	<td><{$data_vote[value].name}></td>
                <td><{$data_vote[value].numbers}>
                <td><{if time()>$data_vote[value].stop_time}>已过期<{else}>进行中<{/if}></td>
                <td><a class="detail" href="?index.php&g=test&m=test&a=detail_vote&id=<{$data_vote[value].id}>">详情</a>
                <a class="delete" href="?index.php&g=test&m=test&a=del_vote&id=<{$data_vote[value].id}>" onclick="javascript:return confirm('你确定删除吗？')">删除</a></td>
            </tr>
            <{/section}>
        </table>
    </div>
</div>
</body>
</html>
